package com.swagger.demo.admin.custom.bean;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author: lbq
 * @email: 526509994@qq.com
 * @date: 2022/4/21
 */
@ApiModel(description = "公务车表格返回值")
public class GwcGridData2 {
    @ApiModelProperty(value = "总记录数")
    protected long total;
    @ApiModelProperty(value = "表格数据<String>")
    private List<String> rows;
    @ApiModelProperty(value = "0:调用成功 -1:调用失败", example = "0")
    private short code = 0;
    @ApiModelProperty(value = "true:成功 false:失败", example = "true")
    protected Boolean success;

    public GwcGridData2() {
    }

    public long getTotal() {
        return this.total;
    }

    public void setTotal(Long total) {
        if (total == null) {
            total = 0L;
        }

        this.total = total.longValue();
    }

    public Boolean getSuccess() {
        return this.success;
    }

    public void setSuccess(Boolean success) {
        if (!success.booleanValue()) {
            this.code = 1;
        }

        this.success = success;
    }

    public List<?> getRows() {
        return this.rows;
    }

    public void setRows(List<String> rows) {
        this.rows = rows;
    }

    public short getCode() {
        return this.code;
    }

    public void setCode(short code) {
        this.code = code;
    }
}

